<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>添加会议纪要</title>
		<%@include file="common.jsp"%>
		<script type="text/javascript">
		function mtypeChange(){
			var c = $("#mtype").val()*1;
			switch(c){
			case 1:
				$("#guestname").attr("vlaue","");				
				$("#guestname").attr("disabled","disabled");
				$("#depName").attr("value","");
				$("#depName").attr("disabled","disabled");
				break;
			case 2:
				$("#depName").attr("value","");
				$("#depName").attr("disabled","disabled");
				$("#guestname").attr("disabled","");
				break;
			case 3:
				$("#guestname").attr("value","");
				$("#guestname").attr("disabled","disabled");
				$("#depName").attr("disabled","");
				break;
			}
		}
		</script>
	</head>
	<body bgcolor="#B7E8FB">
		<form action="${ctx}/meetingadd.ac" method="post">
			<table width="960" border="5" align="center" cellpadding="10"
				cellspacing="0">
				<tr>
					<td height="140" colspan="2">
						<img src="${ctx }/images/top.jpg" width="1164" height="140" />
					</td>
				</tr>
				<tr>
					<td>
						会议主题
					</td>
					<td>
						<input type="text" name="topic" id="topic" /> 
					</td>
				</tr>
				<tr>
					<td>
						与会人员
					</td>
					<td>
						<textarea name="participants" id="participants" cols="45" rows="5" ></textarea>
					</td>
				</tr>
				<tr>
					<td>
						会议类型
					</td>
					<td>
						<!-- 公司会议为1， 客户会议为2，部门会议为3 -->
						<select id="mtype" name="mtype" onchange="mtypeChange();">
							<option value="1">
								公司会议
							</option>
							<option value="2">
								客户会议
							</option>
							<option value="3">
								部门会议
							</option>
						</select>&nbsp;&nbsp;
						客户公司名称&nbsp;&nbsp;<input type="text" name="guestname" id="guestname" disabled="disabled" />&nbsp;&nbsp;
						部门名称&nbsp;&nbsp;<input type="text" name="depName" id="depName" disabled="disabled" />
					</td>
				</tr>
				<tr>
					<td>
						会议事项负责人
					</td>
					<td>
						<input type="text" name="mperson" id="mperson" />
					</td>
				</tr>
				<tr>
					<td>
						会议时间
					</td>
					<td>
						<input type="text" name="meetingTime" id="meetingTime" class="doubledate ipticon" readonly="readonly"/>
					</td>
				</tr>
				<tr>
					<td>
						会议事项完成时间
					</td>
					<td>
						<input type="text" name="completeTime" id="completeTime" class="doubledate ipticon" readonly="readonly"/>
					</td>
				</tr>
				<tr>
					<td>
						会议内容
					</td>
					<td>
						<textarea name="content" id="content" cols="60" rows="10" ></textarea>
					</td>
				</tr>
				<tr>
					<td>
						注意事项
					</td>
					<td>
						<textarea name="precautions" id="precautions" cols="45" rows="5" ></textarea>
					</td>
				</tr>
				<tr>
					<td width="154">
						备注
					</td>
					<td>
						<input type="text" name="remark" id="remark" />
					</td>
				</tr>
				<tr>
					<td>
						&nbsp;
					</td>
					<td>
						<input type="submit" value="添加" />
						&nbsp;&nbsp;&nbsp;&nbsp;
						<input name="" type="button" value="取消" onclick="history.go(-1);" />
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>
